import {getChannels} from '@/api/channels'
import {SET_CHANNELS} from '../actionTypes'

export const getChannelList = ()=>{
    return async dispatch =>{
        const res = await getChannels()
        // console.log(res)
        dispatch({
            type:SET_CHANNELS,
            payload: res.data.channels
        })
    }
}

